package org.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.dao.ShopDao;
import org.example.entity.Shop;
import org.example.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShopServiceImpl implements ShopService {

    @Autowired
    private ShopDao shopDao;



    @Override
    public IPage<Shop> selectPageVo(Integer current,Integer size) {
        Page<Shop> page = new Page<>(current, size);
        return shopDao.selectPage(page,new QueryWrapper<>());
    }
    
    
    public static void main(String[] args){
        String str2 = new StringBuilder("ja").append("va").toString();
        System.out.println(str2 == str2.intern());
    }
}
